﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyFirstGame_Tutorial
{
    public class CrosshairCursor
    {
        public float lastX = 0;
        public float lastY = 0;
        public bool wasDown = false;
        public bool isDown = false;

        public float X = 0;
        public float Y = 0;

        internal void setDown(int x, int y)
        {
            isDown = true;
            lastX = (float)x;
            lastY = (float)y;
            set(x, y);
        }

        internal void set(int x, int y)
        {
            X = (float)x;
            Y = (float)y;
        }

        public void set(float x, float y)
        {
            X = x;
            Y = y;
        }

        public void setUp(float x, float y)
        {
            isDown = false;
            set(x, y);

        }

        public void setDown(float x, float y)
        {
            isDown = true;
            lastX = x;
            lastY = y;
            set(x, y);
        }
    }
}
